package com.interview.member.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.interview.common.utils.PageUtils;
import com.interview.member.entity.UmsMemberEntity;

import java.util.Map;

/**
 * 会员-会员表
 *
 * @author bin.z
 * @email bin.z@gmail.com
 * @date 2021-03-23 16:16:15
 */
public interface UmsMemberService extends IService<UmsMemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 通过登录用户名/电话、密码验证
     */
    UmsMemberEntity getByLoginInfo(UmsMemberEntity loginUser);

    /**
     * 注册功能
     */
    UmsMemberEntity registryBySelective(UmsMemberEntity registryUser);

    /**
     * 更新积分点
     */
    void updateIntegral(Long id, Long integral);
}

